package com.ahu.service;

import com.ahu.dao.UserDao;
import com.ahu.dao.UserDaoImpl;
import com.ahu.dao.UserDaoMysqlImpl;
import com.ahu.dao.UserDaoOracleImpl;

/**
 * Author: Zhang Dongwei
 * Date: 2022/5/7 20:37
 */
public class UserServiceImpl implements UserService {

//    private UserDao userDao = new UserDaoOracleImpl();
    private UserDao userDao;

//    利用set进行动态实现值的注入！
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void getUser() {
        userDao.getUser();
    }
}
